package dflow.domain.mapper;

import com.github.pagehelper.Page;
import dflow.domain.PageModule;
import dflow.domain.PageTemplateDetail;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Result;
import org.apache.ibatis.annotations.Results;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/*******************************************************************************************
 * 类描述：  
 *
 * @author: dustin
 * @date: 2017-12-06 16:11
 * @Description:
 * @version 1.0
 *
 *
 * Version    Date       ModifiedBy                 Content  
 * -------- ---------    ----------         ------------------------  
 * 1.0      2017/12/6     dst                               
 *******************************************************************************************
 */
public interface TemplateMapper {
//    @Select("select t.*,m.Id mid,m.name name1, m.* from page_template t, page_module m where t.id  = m.templateId and t.Id = #{id}")
//    @Results({
//            @Result(property = "id",  column = "mid"),
//            @Result(property = "name", column = "Name1")
//    })
    PageTemplateDetail getTemplateDetail(long id);
    Page<PageTemplateDetail> getTemplateDetails(@Param("id") long id, @Param("nameLength")int nameLength);
}
